<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
       <div class="content">
        <div class="header">
            <h1 class="page-title"><a href="http://127.0.0.1/admin/test/test">商品列表</a></h1>
        </div>

        <div class="well">
            <!-- search button -->
            <form action="http://127.0.0.1/admin/test/select" method="get" class="form-search">
                <div class="row-fluid" style="text-align: left;">
                    <div class="pull-left span4 unstyled">
                        <p> 商品名称：<input class="input-medium" name="pro" type="text"></p>
                    </div>
                </div>
                <button type="submit" class="btn">查找</button>
                <a class="btn btn-primary" href="http://127.0.0.1/admin/test/add">新增</a>
            </form>
        </div>
        <div class="well">
            <!-- table -->
            <table class="table table-bordered table-hover table-condensed">
                <thead>
                    <tr>
                        <th>编号</th>
                        <th>商品名称</th>
                        <th>商品价格</th>
                        <th>商品数量</th>
                        <th>商品logo</th>
                        <th>添加时间</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    {volist name='data' id='v'}
                    <tr class="success">
                        <td>{$v.proID}</td>
                        <td><a href="javascript:void(0);">{$v.proname}</a></td>
                        <td>{$v.proprice}</td>
                        <td>{$v.proguige}</td>
                        <td><img src="img/goods01_thumb.jpg"></td>
                        <td>2017-04-01 08:00:00</td>
                        <td>
                            <a href="http://127.0.0.1/admin/test/edit/id/{$v.proID}"> 编辑 </a>
                            <a href="javascript:void(0);" onclick="if(confirm('确认删除？')) location.href='http://127.0.0.1/admin/test/del/id/{$v.proID}'">删除</a>
                        </td>
                    </tr>
                    {/volist}
                </tbody>
            </table>
            <!-- pagination -->
        </div>

        <!-- footer -->
        <footer>
            <hr>
            <p>© 2017 <a href="javascript:void(0);" target="_blank">ADMIN</a></p>
        </footer>
    </div>
</body>
</html>